<extend name="Base/common"/>
<block name="body">
		<div id="LearnAbout">
			<header><a href="__CONTROLLER__/released/teaching/{$Think.get.teaching}" class="back" ><img src="__IMG__/images/back_03.png"/></a><eq name="teaching" value="1">学习内容</eq>
			<eq name="teaching" value="2">教学内容</eq>
			</header>
			<div class="LearnAbout">
			<ul>
				<volist name="courses" id="c">
				<li>
					<h1>
						<span class="f-fl">{$c.title}</span>
						<!-- lkl新增显示状态S -->
						<if condition="$c['passed'] eq 0">
						<span class="f-fl" style="margin-left:30px;margin-left: 30px; font-size: 20px;padding: 4px 6px;background: #fea620;color: #fff;">
						审核中</if>
						
						<if condition="$c['passed'] eq 1">
						<span class="f-fl" style="margin-left:30px;margin-left: 30px; font-size: 20px;padding: 4px 6px;background: #3dbb7e;color: #fff;">
						已通过</if>
						
						<if condition="$c['passed'] eq 2">
						<span class="f-fl" style="margin-left:30px;margin-left: 30px; font-size: 20px;padding: 4px 6px;background: #f85f3f;color: #fff;">
						未通过</if>
						</span>
						<!-- lkl新增显示状态E -->
						<span class="f-fr">{$c.salary}元/小时</span>
					</h1>
					<div>{$c.content}</div>
					<p>
						<span class="moren">删除</span>
						<input type="hidden" value="{$c.id}">
						<a href="__CONTROLLER__/addCourse/teaching/{$Think.get.teaching}/id/{$c.id}"><span>修改</span></a>
					</p>
					<div class="clear"></div>
				</li>
				</volist>
			</ul>
			<a href="__CONTROLLER__/addCourse/teaching/{$Think.get.teaching}"><input type="button" id="btn" name="" value="+" /></a>
		</div>
		<script type="text/javascript">
			$('.moren').on('click',function(){
				var id = $(this).next().val();
                layer.open({
                    content: '您确定要删除吗？'
                    ,btn: ['确定', '取消']
                    ,yes: function(index){
                    	$.ajax({
                    		url: "{:U('delCourse')}",
                    		type: 'POST',
                    		dataType: 'json',
                    		data: {id: id},
                    		success:function(data){
                    			layer.msg(data,{time:1500},function(){
                    				location.reload();
                    			});
                    		}
                    	});
                    }
                  });
			});
		</script>
</block>